using BasicData.API.Application.Command;
using BasicData.API.Dtos;
using BasicData.ErrorCode;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace BasicData.API.Application.Mediator
{
    /// <summary>
    /// 商品中介者接口
    /// </summary>
    public interface IGoodsMediator
    {
        /// <summary>
        /// 获取所有商品
        /// </summary>
        /// <param name="command">获取商品命令</param>
        /// <returns>所有商品列表</returns>
        Task<APIResult<List<GoodsDTO>>> GetGoodsAsync(GetGoodsCommand command);
    }
} 